package com.yc.cloud.basic.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum GlobalStatusEnum  implements IEnumCode{
    /***
     * description: 线下支付
     */
    ENABLE("1", "启用"),
    /***
     * description: 微信
     */
    DISABLE("0", "禁用");


    /**
     * 状态码
     */
    final String code;
    /**
     * 消息内容
     */
    final String description;

    public static boolean isValidEnum(String code) {
        for (GlobalStatusEnum fundStatusEnum : GlobalStatusEnum.values()) {
            if (fundStatusEnum.code.equals(code)) {
                return true;
            }
        }
        return false;
    }
}
